home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / prim / tabify.elc.z / tabify.elc
Emacs Compiled Lisp  |  1998-05-21  |  1.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 34 3a 30 36 20 31 | 39 39 38 0a 3b 3b 3b 20 |:54:06 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 70 72 69 6d |s-20.3/l|isp/prim|
|000000a0| 2f 74 61 62 69 66 79 2e | 65 6c 0a 3b 3b 3b 20 65 |/tabify.|el.;;; e|
|000000b0| 6d 61 63 73 20 76 65 72 | 73 69 6f 6e 20 32 30 2e |macs ver|sion 20.|
|000000c0| 34 20 22 45 6d 65 72 61 | 6c 64 22 20 58 45 6d 61 |4 "Emera|ld" XEma|
|000000d0| 63 73 20 20 4c 75 63 69 | 64 2e 0a 3b 3b 3b 20 62 |cs Luci|d..;;; b|
|000000e0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000f0| 32 2e 32 35 20 58 45 6d | 61 63 73 3b 20 32 32 2d |2.25 XEm|acs; 22-|
|00000100| 4d 61 72 2d 39 36 2e 0a | 3b 3b 3b 20 6f 70 74 69 |Mar-96..|;;; opti|
|00000110| 6d 69 7a 61 74 69 6f 6e | 20 69 73 20 6f 6e 2e 0a |mization| is on..|
|00000120| 3b 3b 3b 20 74 68 69 73 | 20 66 69 6c 65 20 75 73 |;;; this| file us|
|00000130| 65 73 20 6f 70 63 6f 64 | 65 73 20 77 68 69 63 68 |es opcod|es which|
|00000140| 20 64 6f 20 6e 6f 74 20 | 65 78 69 73 74 20 69 6e | do not |exist in|
|00000150| 20 45 6d 61 63 73 20 31 | 39 2e 0a 0a 28 69 66 20 | Emacs 1|9...(if |
|00000160| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 6d |(and (bo|undp 'em|
|00000170| 61 63 73 2d 76 65 72 73 | 69 6f 6e 29 0a 09 20 28 |acs-vers|ion).. (|
|00000180| 6f 72 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |or (and |(boundp |
|00000190| 27 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 |'epoch::|version)|
|000001a0| 20 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 | epoch::|version)|
|000001b0| 0a 09 20 20 20 20 20 28 | 73 74 72 69 6e 67 2d 6c |.. (|string-l|
|000001c0| 65 73 73 70 20 65 6d 61 | 63 73 2d 76 65 72 73 69 |essp ema|cs-versi|
|000001d0| 6f 6e 20 22 32 30 22 29 | 29 29 0a 20 20 20 20 28 |on "20")|)). (|
|000001e0| 65 72 72 6f 72 20 22 60 | 74 61 62 69 66 79 2e 65 |error "`|tabify.e|
|000001f0| 6c 27 20 77 61 73 20 63 | 6f 6d 70 69 6c 65 64 20 |l' was c|ompiled |
|00000200| 66 6f 72 20 45 6d 61 63 | 73 20 32 30 22 29 29 0a |for Emac|s 20")).|
|00000210| 0a 28 6f 72 20 28 62 6f | 75 6e 64 70 20 27 63 75 |.(or (bo|undp 'cu|
|00000220| 72 72 65 6e 74 2d 6c 6f | 61 64 2d 6c 69 73 74 29 |rrent-lo|ad-list)|
|00000230| 20 28 73 65 74 71 20 63 | 75 72 72 65 6e 74 2d 6c | (setq c|urrent-l|
|00000240| 6f 61 64 2d 6c 69 73 74 | 20 6e 69 6c 29 29 0a 0a |oad-list| nil))..|
|00000250| 0a 23 40 32 35 33 20 43 | 6f 6e 76 65 72 74 20 61 |.#@253 C|onvert a|
|00000260| 6c 6c 20 74 61 62 73 20 | 69 6e 20 72 65 67 69 6f |ll tabs |in regio|
|00000270| 6e 20 74 6f 20 6d 75 6c | 74 69 70 6c 65 20 73 70 |n to mul|tiple sp|
|00000280| 61 63 65 73 2c 20 70 72 | 65 73 65 72 76 69 6e 67 |aces, pr|eserving|
|00000290| 20 63 6f 6c 75 6d 6e 73 | 2e 0a 43 61 6c 6c 65 64 | columns|..Called|
|000002a0| 20 6e 6f 6e 2d 69 6e 74 | 65 72 61 63 74 69 76 65 | non-int|eractive|
|000002b0| 6c 79 2c 20 74 68 65 20 | 72 65 67 69 6f 6e 20 69 |ly, the |region i|
|000002c0| 73 20 73 70 65 63 69 66 | 69 65 64 20 62 79 20 61 |s specif|ied by a|
|000002d0| 72 67 75 6d 65 6e 74 73 | 0a 53 54 41 52 54 20 61 |rguments|.START a|
|000002e0| 6e 64 20 45 4e 44 2c 20 | 72 61 74 68 65 72 20 74 |nd END, |rather t|
|000002f0| 68 61 6e 20 62 79 20 74 | 68 65 20 70 6f 73 69 74 |han by t|he posit|
|00000300| 69 6f 6e 20 6f 66 20 70 | 6f 69 6e 74 20 61 6e 64 |ion of p|oint and|
|00000310| 20 6d 61 72 6b 2e 0a 54 | 68 65 20 76 61 72 69 61 | mark..T|he varia|
|00000320| 62 6c 65 20 60 74 61 62 | 2d 77 69 64 74 68 27 20 |ble `tab|-width' |
|00000330| 63 6f 6e 74 72 6f 6c 73 | 20 74 68 65 20 73 70 61 |controls| the spa|
|00000340| 63 69 6e 67 20 6f 66 20 | 74 61 62 20 73 74 6f 70 |cing of |tab stop|
|00000350| 73 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 75 |s...(def|alias 'u|
|00000360| 6e 74 61 62 69 66 79 20 | 23 5b 28 73 74 61 72 74 |ntabify |#[(start|
|00000370| 20 65 6e 64 29 20 22 8a | 8c 65 08 7d 88 09 62 88 | end) ".|.e.}..b.|
|00000380| c2 1b c4 c5 c6 c7 23 ab | af 60 69 c6 1e 08 1e 09 |......#.|.`i.....|
|00000390| 1e 5c 6e c5 09 78 88 0e | 5c 6e 60 7c 88 0e 09 6a |.\n..x..|\n`|...j|
|000003a0| 88 60 09 5a cb 5f 64 09 | 5a a5 0b 56 ab 89 cc cd |.`.Z._d.|Z..V....|
|000003b0| 0b 5c 22 88 0b c2 5c 5c | 13 2b aa 4a 29 cc ce 21 |.\"...\\|.+.J)..!|
|000003c0| 88 2a c6 87 22 20 5b 65 | 6e 64 20 73 74 61 72 74 |.*.." [e|nd start|
|000003d0| 20 35 20 70 65 72 63 65 | 6e 74 20 73 65 61 72 63 | 5 perce|nt searc|
|000003e0| 68 2d 66 6f 72 77 61 72 | 64 20 22 09 22 20 6e 69 |h-forwar|d "." ni|
|000003f0| 6c 20 74 20 69 6e 64 65 | 6e 74 2d 74 61 62 73 2d |l t inde|nt-tabs-|
|00000400| 6d 6f 64 65 20 63 6f 6c | 75 6d 6e 20 74 61 62 2d |mode col|umn tab-|
|00000410| 62 65 67 20 31 30 30 20 | 6d 65 73 73 61 67 65 20 |beg 100 |message |
|00000420| 22 75 6e 74 61 62 69 66 | 79 3a 20 25 64 25 25 20 |"untabif|y: %d%% |
|00000430| 2e 2e 2e 22 20 22 75 6e | 74 61 62 69 66 79 3a 20 |..." "un|tabify: |
|00000440| 64 6f 6e 65 22 5d 20 34 | 20 28 23 24 20 2e 20 35 |done"] 4| (#$ . 5|
|00000450| 39 39 29 20 22 72 22 5d | 29 0a 23 40 33 35 34 20 |99) "r"]|).#@354 |
|00000460| 43 6f 6e 76 65 72 74 20 | 6d 75 6c 74 69 70 6c 65 |Convert |multiple|
|00000470| 20 73 70 61 63 65 73 20 | 69 6e 20 72 65 67 69 6f | spaces |in regio|
|00000480| 6e 20 74 6f 20 74 61 62 | 73 20 77 68 65 6e 20 70 |n to tab|s when p|
|00000490| 6f 73 73 69 62 6c 65 2e | 0a 41 20 67 72 6f 75 70 |ossible.|.A group|
|000004a0| 20 6f 66 20 73 70 61 63 | 65 73 20 69 73 20 70 61 | of spac|es is pa|
|000004b0| 72 74 69 61 6c 6c 79 20 | 72 65 70 6c 61 63 65 64 |rtially |replaced|
|000004c0| 20 62 79 20 74 61 62 73 | 0a 77 68 65 6e 20 74 68 | by tabs|.when th|
|000004d0| 69 73 20 63 61 6e 20 62 | 65 20 64 6f 6e 65 20 77 |is can b|e done w|
|000004e0| 69 74 68 6f 75 74 20 63 | 68 61 6e 67 69 6e 67 20 |ithout c|hanging |
|000004f0| 74 68 65 20 63 6f 6c 75 | 6d 6e 20 74 68 65 79 20 |the colu|mn they |
|00000500| 65 6e 64 20 61 74 2e 0a | 43 61 6c 6c 65 64 20 6e |end at..|Called n|
|00000510| 6f 6e 2d 69 6e 74 65 72 | 61 63 74 69 76 65 6c 79 |on-inter|actively|
|00000520| 2c 20 74 68 65 20 72 65 | 67 69 6f 6e 20 69 73 20 |, the re|gion is |
|00000530| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 61 72 67 |specifie|d by arg|
|00000540| 75 6d 65 6e 74 73 0a 53 | 54 41 52 54 20 61 6e 64 |uments.S|TART and|
|00000550| 20 45 4e 44 2c 20 72 61 | 74 68 65 72 20 74 68 61 | END, ra|ther tha|
|00000560| 6e 20 62 79 20 74 68 65 | 20 70 6f 73 69 74 69 6f |n by the| positio|
|00000570| 6e 20 6f 66 20 70 6f 69 | 6e 74 20 61 6e 64 20 6d |n of poi|nt and m|
|00000580| 61 72 6b 2e 0a 54 68 65 | 20 76 61 72 69 61 62 6c |ark..The| variabl|
|00000590| 65 20 60 74 61 62 2d 77 | 69 64 74 68 27 20 63 6f |e `tab-w|idth' co|
|000005a0| 6e 74 72 6f 6c 73 20 74 | 68 65 20 73 70 61 63 69 |ntrols t|he spaci|
|000005b0| 6e 67 20 6f 66 20 74 61 | 62 20 73 74 6f 70 73 2e |ng of ta|b stops.|
|000005c0| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 74 61 62 |..(defal|ias 'tab|
|000005d0| 69 66 79 20 23 5b 28 73 | 74 61 72 74 20 65 6e 64 |ify #[(s|tart end|
|000005e0| 29 20 22 8a 8c 08 62 88 | c1 79 88 60 5c 6e 7d 88 |) "...b.|.y.`\n}.|
|000005f0| 08 62 88 c3 1c c5 c6 c7 | c8 23 ab a8 69 c8 1e 09 |.b......|.#..i...|
|00000600| 1e 5c 6e c1 94 60 7c 88 | 0e 5c 6e 6a 88 60 08 5a |.\n..`|.|.\nj.`.Z|
|00000610| cb 5f 64 08 5a a5 0c 56 | ab 89 cc cd 0c 5c 22 88 |._d.Z..V|.....\".|
|00000620| 0c c3 5c 5c 14 2a aa 51 | 29 cc ce 21 2a 87 22 20 |..\\.*.Q|)..!*." |
|00000630| 5b 73 74 61 72 74 20 30 | 20 65 6e 64 20 35 20 70 |[start 0| end 5 p|
|00000640| 65 72 63 65 6e 74 20 72 | 65 2d 73 65 61 72 63 68 |ercent r|e-search|
|00000650| 2d 66 6f 72 77 61 72 64 | 20 22 5b 20 09 5d 5b 20 |-forward| "[ .][ |
|00000660| 09 5d 5b 20 09 5d 2a 22 | 20 6e 69 6c 20 74 20 69 |.][ .]*"| nil t i|
|00000670| 6e 64 65 6e 74 2d 74 61 | 62 73 2d 6d 6f 64 65 20 |ndent-ta|bs-mode |
|00000680| 63 6f 6c 75 6d 6e 20 31 | 30 30 20 6d 65 73 73 61 |column 1|00 messa|
|00000690| 67 65 20 22 74 61 62 69 | 66 79 3a 20 25 64 25 25 |ge "tabi|fy: %d%%|
|000006a0| 20 2e 2e 2e 22 20 22 74 | 61 62 69 66 79 3a 20 64 | ..." "t|abify: d|
|000006b0| 6f 6e 65 22 5d 20 34 20 | 28 23 24 20 2e 20 31 31 |one"] 4 |(#$ . 11|
|000006c0| 32 30 29 20 22 72 22 5d | 29 0a 28 70 72 6f 76 69 |20) "r"]|).(provi|
|000006d0| 64 65 20 27 74 61 62 69 | 66 79 29 0a |de 'tabi|fy). |
+--------+-------------------------+-------------------------+--------+--------+